package CommonPages;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

/**
 * Created by forgedone on 09.02.14.
 */
public class WebDriverHolder {
    private static WebDriver driver;

    public static WebDriver getWebDriver(){
        return driver;
    }

    public static void startWebDriver(){
        driver = new FirefoxDriver();
    }

    public static void quitWebDriver(){
        if (driver != null){
            driver.quit();
        }
    }
}
